// $Header: $

using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;

namespace LogParser.Collections
{
    /// <summary>
    /// Summary description for LogParser.Collections.FlagEventType.
    /// </summary>
    public class FlagEventTypeList
    {
        #region Private Member Variables

        private DA.FlagEventTypeListModel _model;
        Hashtable _flagEventTypeList;

        #endregion

        #region Constructor
        /// <summary>
        /// Initializes a new instance of the <see cref="FlagEventType"/> class.
        /// </summary>
        public FlagEventTypeList( )
        {
            Initialize();
        }

        private void Initialize( )
        {
            _model = new LogParser.DA.FlagEventTypeListModel();
            _flagEventTypeList = new Hashtable();

            List<GameObjects.FlagEventType> flagEventTypeList = _model.GetFlagEventTypeList();

            foreach ( GameObjects.FlagEventType tempEvent in flagEventTypeList )
            {
                _flagEventTypeList.Add( tempEvent.ShortName, tempEvent );
            }

        }

        #endregion

        #region Public Properties

        #endregion

        #region Private Properties

        #endregion

        #region Public Member Functions

        public GameObjects.FlagEventType GetFlagEventType( string flagEventName )
        {
            GameObjects.FlagEventType returnType = new LogParser.GameObjects.FlagEventType();

            returnType = ( GameObjects.FlagEventType ) ( _flagEventTypeList[ flagEventName ] );

            return returnType;
        }

        #endregion

        #region Private Member Functions

        #endregion
    }
}

#region VSS Log

/*
 * $Log: $
 */

#endregion VSS Log